package com.jzr.bedside.controller.api;

import com.jzr.bedside.db1.model.THospital;
import com.jzr.bedside.db1.service.THospitalService;
import com.jzr.common.entity.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api("医院信息接口")
@RestController
@RequestMapping("/api/hospital")
public class HospitalController {
    @Autowired
    private THospitalService hospitalService;

    @ApiOperation("获取医院信息接口")
    @RequestMapping("/get")
    public Result<THospital> get(){
        THospital hospital = hospitalService.getOne(null);
        return Result.success("成功",hospital);
    }
}
